package com.mashibing.controller;

import com.mashibing.dto.ForecastPrice;
import com.mashibing.dto.ResponseResult;
import com.mashibing.service.ForecastPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ForecastPriceController {
    @Autowired
    private ForecastPriceService forecastPriceService;

    /**
     * 预估价格
     * 1、获取四个经纬度
     * @param forecastPrice
     * @return
     */
    @PostMapping("/forecast-price")
    public ResponseResult forecastPrice(@RequestBody ForecastPrice forecastPrice){
        return forecastPriceService.forecastPrice(forecastPrice);
    }
}
